package com.design.pattern.decorator.battercake.v2;/** * create by yufeng on 2021/7/4 15:56 */public class EggDecorator extends BattercakeDecorator{    public EggDecorator(Battercake battercake) {        super(battercake);    }    protected String getMsg(){ return super.getMsg() + "1个鸡蛋";}    public int getPrice(){ return super.getPrice() + 1;}}